﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Forms/FormAdmin.master" AutoEventWireup="true" CodeBehind="DownloadableForms.aspx.cs" Inherits="HRdex_Final.Forms.WebForm5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<div align="center">
    <table style="width: 496px">
        <tr>
             <td style="width: 310px">
                 <asp:Button ID="btnEdt" runat="server" Text="Edit" Width="70px" 
                     Visible="False"  />
                 <asp:Button ID="btnDlte" runat="server" Text="Delete" Width="70px" 
                     Visible="False"/>
             </td> 
        </tr>
        <tr>
            <td style="width: 310px">
                <span style="font-size: xx-large">Downloadable Files
                </span>
                <br />
                <asp:GridView ID="gvDownload" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="downloadID" DataSourceID="dsDownload" 
                    onselectedindexchanged="gvDownload_SelectedIndexChanged" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    Width="492px">
                    <Columns>
                        <asp:BoundField DataField="downloadID" HeaderText="downloadID" 
                            InsertVisible="False" ReadOnly="True" SortExpression="downloadID" 
                            Visible="False" />
                        <asp:BoundField DataField="dLoadName" HeaderText="Name" 
                            SortExpression="Name" />
                        <asp:BoundField DataField="dLoadType" HeaderText="Type" 
                            SortExpression="dLoadType" />
                        <asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="Download" 
                            ShowHeader="True" Text="Download" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:SqlDataSource ID="dsDownload" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT downloadID, dLoadName, dLoadType FROM formDownload">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 310px">
                <asp:FileUpload ID="fuDownloads" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="width: 310px">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    onclick="btnSubmit_Click" />
                <asp:Button ID="btnClose" runat="server" Text="Close" Visible="False" />
                <asp:Button ID="btnClear" runat="server" Text="Clear" Visible="False" />    
            </td>
        </tr>
    </table>
 
</div>

</asp:Content>
